home *** CD-ROM | disk | FTP | other *** search
/ Speccy ClassiX 1998 / Speccy ClassiX 98.iso / amiga_system / the_aminet / dev / c / asyncio.lha / AsyncIO / src / DMakeFile < prev    next >
Encoding:
Makefile  |  1995-09-10  |  1.8 KB  |  64 lines

  1. #
  2. # Makefile for asyncio library. Both shared library and normal library models.
  3. #
  4. # Does not generate all flavors; only the basic ones:
  5. #   Normal arguments, smalldata
  6. #   Registered arguments, smalldata
  7. #
  8. # Should be easy to modify below to generate other flavors, if needed.
  9. #
  10.  
  11. SRC = Lib.c CloseAsync.c OpenAsync.c OpenAsyncFH.c OpenAsyncFromFH.c ReadAsync.c \
  12.       ReadCharAsync.c RecordAsyncFailure.c RequeuePacket.c SeekAsync.c SendPacket.c \
  13.       WaitPacket.c WriteAsync.c WriteCharAsync.c
  14.  
  15. OBJ = $(SRC:*.?:*.o)
  16.  
  17. PRAGMA = /include/pragmas/asyncio_pragmas.h
  18.  
  19. # Generate all "normal" flavors
  20.  
  21. All : /libs/asyncio.library $(PRAGMA) /lib/asynciolibs.lib /lib/asyncios.lib /lib/asynciosr.lib
  22.  
  23.  
  24. # The only difference when making the shared library is that Lib.c is included
  25. # (MUST be first), and that SHARED_LIB is defined. It only affects another define
  26. # in the (private) include file async.h
  27.  
  28. /libs/asyncio.library : $(OBJ)
  29.     DLink -o %(left) %(right) miscsr.lib
  30.  
  31. $(OBJ) : $(SRC)
  32.     Dcc -c -DASIO_SHARED_LIB -o %(left) %(right)
  33.  
  34.  
  35. # Keep the pragma file up to date
  36.  
  37. $(PRAGMA) : asyncio_lib.fd
  38.     FDTOPragma -o%(left) %(right)
  39.  
  40.  
  41. # Link libraries for use with the shared version of the library. Only needed if
  42. # the -mi option isn't used, or you use the autoinit stuff.
  43.  
  44. /lib/asynciolibs.lib : asyncio_lib.fd
  45.     Resident Dcc:Bin/Das
  46.     fdtolib -o%(left) %(right) -auto asyncio.library
  47.     Resident Das REMOVE
  48.  
  49. # This only generates autoinitcode for some odd reason. Thus, you can use the
  50. # above library if you need it.
  51. /lib/asynciolibsr.lib : asyncio_lib.fd
  52.     Resident Dcc:Bin/Das
  53.     fdtolib -o%(left) %(right) -mr -hasynciolibsr.h -auto asyncio.library
  54.     Resident Das REMOVE
  55.  
  56.  
  57. # Here the normal link library versions are generated. See lib.def for more information.
  58.  
  59. /lib/asyncios.lib :
  60.     LbMake asyncio s
  61.  
  62. /lib/asynciosr.lib :
  63.     LbMake asyncio s r
  64.